package org.gd.hellojavacore.patterns.decorator;

abstract class DecoratorImpl implements InterfaceComponent {

    protected InterfaceComponent component;

    public DecoratorImpl(InterfaceComponent c){
        component = c;
    }

    public void doOperation(){
        component.doOperation();
    }
    public void newOperation(){
        System.out.println("Do Nothing");
    }
}
